from django.urls import path
from . import views

app_name = 'prediction'

urlpatterns = [
    # # 成绩预测相关
    # path('score-predict/', views.score_predict, name='score_predict'),
    # path('score-predict/<uuid:student_id>/<int:subject_id>/', views.score_predict_detail, name='score_predict_detail'),
    # path('score-predict/<uuid:student_id>/history/', views.score_prediction_history, name='score_prediction_history'),
    # path('score-predict/<int:prediction_id>/update/', views.score_prediction_update, name='score_prediction_update'),
    # path('score-predict/<int:prediction_id>/delete/', views.score_prediction_delete, name='score_prediction_delete'),
    # path('score-predict/<int:prediction_id>/verify/', views.score_prediction_verify, name='score_prediction_verify'),
    #
    # # 薄弱点分析相关
    # path('weakness-analysis/<uuid:student_id>/', views.weakness_analysis, name='weakness_analysis'),
    # path('weakness-analysis/<uuid:student_id>/<int:subject_id>/', views.weakness_analysis_detail,
    #      name='weakness_analysis_detail'),
    # path('weakness-analysis/<uuid:student_id>/report/', views.weakness_analysis_report,
    #      name='weakness_analysis_report'),
    #
    # # 改进建议相关
    # path('recommendations/<uuid:student_id>/', views.recommendations_list, name='recommendations_list'),
    # path('recommendations/<int:recommendation_id>/update/', views.recommendation_update, name='recommendation_update'),
    # path('recommendations/<int:recommendation_id>/complete/', views.recommendation_complete,
    #      name='recommendation_complete'),
    # path('recommendations/<int:recommendation_id>/delete/', views.recommendation_delete, name='recommendation_delete'),
    #
    # # 预测模型管理（管理员功能）
    # path('model/retrain/', views.model_retrain, name='model_retrain'),
    # path('model/status/', views.model_status, name='model_status'),
    # path('model/performance/', views.model_performance, name='model_performance'),

    # 成绩预测相关 - 保持你的Class-Based View
    path('score-predict/', views.ScorePredictionView.as_view(), name='score_predict'),

    # 其他功能可以继续用函数式视图
    path('score-predict/<uuid:student_id>/history/', views.score_prediction_history, name='score_prediction_history'),
    path('score-predict/<int:prediction_id>/verify/', views.score_prediction_verify, name='score_prediction_verify'),

    # 薄弱点分析
    path('weakness-analysis/<uuid:student_id>/', views.weakness_analysis, name='weakness_analysis'),

]